import request from '../request/requestone'

export const getmyblog = (data) => {
  return request({
    url: '/blog/search',
    method: 'get',
    params: data
  })
}

// 写文章
export const WritingmyblogAPI = (data) => {
  return request({
    url: '/blog/add',
    method: 'post',
    data
  })
}

// 删除
export const deleteblogAPI = (data) => {
  return request({
    url:'/blog/delete',
    method: 'DELETE',
    data
  })
}

// 点赞
export const dianzanAPI = (data) => {
  return request({
    url: '/like/add',
    method: 'post',
    data
  })
}
